import request from '@/utils/request'

export function page(data) {
  return request({
    url: '/mm-log/' + data.pageNo + '/' + data.pageSize,
    method: 'get',
    params: { 'query': data.query }
  })
}

export function save(data) {
  return request({
    url: '/mm-log',
    method: 'post',
    data: data
  })
}

export function edit(data) {
  return request({
    url: '/mm-log',
    method: 'put',
    data: data
  })
}

export function detail(id) {
  return request({
    url: '/mm-log/' + id,
    method: 'get'
  })
}

export function remove(id) {
  return request({
    url: '/mm-log/' + id,
    method: 'delete'
  })
}


